package com.ynding.spring.idea.ddd.core.model.wechat.entity;

import com.ynding.spring.idea.ddd.core.model.wechat.dp.BalanceNumber;
import com.ynding.spring.idea.ddd.core.model.bo.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p> 余额</p>
 *
 * @author ynding
 * @version 2022/4/26
 **/
@Data
@ApiModel(value = "Balance" ,description = "余额")
public class Balance implements Entity<BalanceNumber> {

    @ApiModelProperty("ID")
    private BalanceNumber id;

    private Balance(){}

    /**
     * 扣款
     * @param balance
     */
    public void decrease(Balance balance){
        //TODO
    }

    /**
     * 收款
     * @param balance
     */
    public void increase(Balance balance){
        // TODO
    }
}
